CFLAGS = -O2 -W -Wall -Werror -ansi -pedantic
CC = gcc

PRG = test

all:${PRG}

${PRG}: useless.o main.o
	 ${CC} -o $@ $^ ${CFLAGS}

%.o: %.c
	${CC} -o $@ -c $< ${CFLAGS}

clean:
	rm -f *~ \#*# *.o
	rm -f ${PRG}
#END
